<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="trafficCss" jsFile="trafficJs" current="流量">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>编辑充值信息
                    <small>编辑充值信息界面</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
        	<li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">编辑充值信息</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        基本信息</div>
                </div>
                <div class="portlet-body form edit-form">
                    <form action="#" class="horizontal-form createform" id="trafficForm" >
                        <input type="hidden" id="id"  name="id" value="${ProductFlowInfoVO.id}">  
                        <div class="form-body">
                            <div class="alert alert-danger display-hide">
                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
                            </div>
                            <div class="alert alert-success display-hide">
                                <button class="close" data-close="alert"></button> 表单验证通过! 
                            </div>
                            <div class="row">
                            	<div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">运营商</label>
                                        	<div class="input-group-content">
                                            	<select class="form-control input-inline" name="serviceProvier" >
				                                    <option value="">请选择</option>
				                                    <option value="CHINAMOBILE">移动</option>
				                                    <option value="UNICOM">联通</option>		
				                                    <option value="CHINAMOBILE">移动</option>                          
				                                </select>
			                                </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">省市</label>
                                            <div class="input-group-content">
                                            	<select class="form-control input-inline" name="province" >
				                                    <option value="">请选择</option>
				                                    <option value="0">北京</option>
				                                    <option value="1">天津</option>		
				                                    <option value="2">上海</option>                          
				                                </select>
                                        	</div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">使用范围</label>
                                            <div class="input-group-content">
                                                <select class="form-control input-inline" name="range" >
                                                    <option value="">请选择</option>
                                                    <option value="ALL">全国</option>
                                                    <option value="LOCAL">本地</option>      
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">生效时间</label>
                                            <div class="input-group-content">
                                                <div class="input-group date date-picker" data-date-format="yyyy-mm-dd" data-date-start-date="+0d">
                                                    <input type="text" placeholder="生效时间" name="startFrom" class="form-control" readonly="">
                                                    <span class="input-group-btn">
                                                        <button class="btn default" type="button">
                                                            <i class="fa fa-calendar"></i>
                                                        </button>
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">流量有效期</label>
                                            <div class="input-group-content">
                                                <div class="input-group date date-picker" data-date-format="yyyy-mm-dd" data-date-start-date="+0d">
                                                    <input type="text" placeholder="流量有效期" name="validDate" class="form-control" readonly="">
                                                    <span class="input-group-btn">
                                                        <button class="btn default" type="button">
                                                            <i class="fa fa-calendar"></i>
                                                        </button>
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">限充次数</label>
                                            <div class="input-group-content">
                                                  <input type="text" class="form-control" placeholder="限充次数" name="rechargeLimit" value="${ProductFlowInfoVO.limitNum}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">支持网络</label>
                                            <div class="input-group-content">
                                            	<input type="text" class="form-control" placeholder="支持网络" name="supportNet" value="${ProductFlowInfoVO.networkType}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">产品ID</label>
                                            <div class="input-group-content">
                                                  <input type="text" class="form-control" placeholder="产品ID" name="productId" value="${ProductFlowInfoVO.productCode}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">面值</label>
                                            <div class="input-group-content">
                                            	<input type="text" class="form-control" placeholder="面值" name="amount" value="${ProductFlowInfoVO.nominalValue}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">产品包规格</label>
                                            <div class="input-group-content">
                                                  <input type="text" class="form-control" placeholder="产品包规格" name="productStandard" value="${ProductFlowInfoVO.productStandard}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">售价</label>
                                            <div class="input-group-content">
                                            	<input type="text" class="form-control" placeholder="售价" name="value" value="${ProductFlowInfoVO.price}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">增值售价</label>
                                            <div class="input-group-content">
                                                  <input type="text" class="form-control" placeholder="折扣" name="sellPrice" value="${ProductFlowInfoVO.mtcPrice}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                                
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">折扣</label>
                                            <div class="input-group-content">
                                                  <input type="text" class="form-control" placeholder="折扣" name="discount" value="${ProductFlowInfoVO.mtcNameDis}"> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">状态</label>
                                            <div class="input-group-content">
                                            	<select class="form-control input-inline" name="status" >
				                                    <option value="">请选择</option>
				                                    <option value="ENABLE">在售</option>
				                                    <option value="DISABLE">停售</option>                          
				                                </select> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                            	<div class="col-md-12">
                                    <div class="form-group">
                                        <div class="input-group intro-content">
                                            <label class="input-group-addon">使用规则</label>
                                            <div class="input-group-content">
                                                <textarea class="form-control" name="useRules" placeholder="使用规则">${ProductFlowInfoVO.useRule}</textarea>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                           </div>
                        </div>
                        
                                
                        <div class="form-actions top">
                            <div class="row">
                                <div class="col-md-offset-5 col-md-7">
                                   <#if view !='toView'>
                                     <button type="submit" class="btn green" id="trafficSave">保存</button>
                                    </#if>
                                    <a href="${context}/traffic/index" class="btn default">返回</a>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->

</@page.mainTemplate>